package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CwLsparkingMapper;
import com.ruoyi.system.domain.CwLsparking;
import com.ruoyi.system.service.ICwLsparkingService;

/**
 * 临时车位费Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-29
 */
@Service
public class CwLsparkingServiceImpl implements ICwLsparkingService 
{
    @Autowired
    private CwLsparkingMapper cwLsparkingMapper;

    /**
     * 查询临时车位费
     * 
     * @param lid 临时车位费主键
     * @return 临时车位费
     */
    @Override
    public CwLsparking selectCwLsparkingByLid(Long lid)
    {
        return cwLsparkingMapper.selectCwLsparkingByLid(lid);
    }

    /**
     * 查询临时车位费列表
     * 
     * @param cwLsparking 临时车位费
     * @return 临时车位费
     */
    @Override
    public List<CwLsparking> selectCwLsparkingList(CwLsparking cwLsparking)
    {
        return cwLsparkingMapper.selectCwLsparkingList(cwLsparking);
    }

    /**
     * 新增临时车位费
     * 
     * @param cwLsparking 临时车位费
     * @return 结果
     */
    @Override
    public int insertCwLsparking(CwLsparking cwLsparking)
    {
        return cwLsparkingMapper.insertCwLsparking(cwLsparking);
    }

    /**
     * 修改临时车位费
     * 
     * @param cwLsparking 临时车位费
     * @return 结果
     */
    @Override
    public int updateCwLsparking(CwLsparking cwLsparking)
    {
        return cwLsparkingMapper.updateCwLsparking(cwLsparking);
    }

    /**
     * 批量删除临时车位费
     * 
     * @param lids 需要删除的临时车位费主键
     * @return 结果
     */
    @Override
    public int deleteCwLsparkingByLids(Long[] lids)
    {
        return cwLsparkingMapper.deleteCwLsparkingByLids(lids);
    }

    /**
     * 删除临时车位费信息
     * 
     * @param lid 临时车位费主键
     * @return 结果
     */
    @Override
    public int deleteCwLsparkingByLid(Long lid)
    {
        return cwLsparkingMapper.deleteCwLsparkingByLid(lid);
    }
}
